package com.zh.mediaservice.service;

import com.zh.mediapojo.dto.UserDto;
import com.zh.mediapojo.dto.UserPasswordDTO;
import com.zh.mediapojo.entity.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    String insertUser(UserDto user);

    String log(String username, String password, HttpServletRequest request);

    void updatePassword(UserPasswordDTO userPasswordDTO);

    User getUserInfo();

    String sendCode(String phoneNumber);

    void resetPassword(String newPassword, String userName);

    User getChatUserInfo(Long userId);
}
